import { defineStore } from "pinia";
export const useStore = defineStore("goods", {
  state: () => ({
    num: 111,
  }),
  actions: {
    addNum() {
      this.num++
    },
    reduce(){
      setTimeout(() => {
        this.num--
      }, 2000);
    }
  },
});
export const flagstore = defineStore("good", {
    state: () => ({
      flag:true
    }),
    actions: {
      changeflag(pyload) {
      
          this.flag=pyload
       
      },
    },
  });
